package com.ruoyi.web.ydz.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 病例档案管理对象 case_file
 * 
 * @author DRX
 * @date 2024-10-14
 */
public class CaseFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /* 病例用户名称 */
    private String caseName;

    /* 病例简介 */
    private String title;

    /** 医院 */
    @Excel(name = "医院")
    private String hospital;

    /** 病例时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "病例时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date caseTime;

    /** 病例描述 */
    @Excel(name = "病例描述")
    private String caseDescription;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String createName;

    /** 更新人名称 */
    @Excel(name = "更新人名称")
    private String updateName;

    /** 是否删除（0否；1是） */
    private String delFlag;

    private List<AttachFile> attachFiles;


    public String getCaseName() {
        return caseName;
    }

    public void setCaseName(String caseName) {
        this.caseName = caseName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<AttachFile> getAttachFiles() {
        return attachFiles;
    }

    public void setAttachFiles(List<AttachFile> attachFiles) {
        this.attachFiles = attachFiles;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHospital(String hospital) 
    {
        this.hospital = hospital;
    }

    public String getHospital() 
    {
        return hospital;
    }
    public void setCaseTime(Date caseTime) 
    {
        this.caseTime = caseTime;
    }

    public Date getCaseTime() 
    {
        return caseTime;
    }
    public void setCaseDescription(String caseDescription)
    {
        this.caseDescription = caseDescription;
    }

    public String getCaseDescription()
    {
        return caseDescription;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }
    public void setUpdateName(String updateName) 
    {
        this.updateName = updateName;
    }

    public String getUpdateName() 
    {
        return updateName;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("hospital", getHospital())
            .append("caseTime", getCaseTime())
            .append("caseDescription", getCaseDescription())
            .append("createBy", getCreateBy())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateName", getUpdateName())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
